Analog signals:

















output of SCALE_X can be integer depending on your needs



some PLCs will allow you to select the type of input the analog signal is. This particular PLC only has 0-10V analog inputs CPU 1212C.


you can change the default address if you need to.





you can change the min and max to what your needs are. pressure range, flow m/min, force, etc.

because we set the SCALE_X output to a real (can be an int) we need a double word to show the decimal places.
Notice since %MD0 was used as the output of NORM_X the next available double word is %MD4 because we used 32 bits in the first case. Leave 4 apart when a double word is used.
[ref: https://www.youtube.com/watch?v=T9kPdUtWZZw]

https://www.youtube.com/watch?v=0o_X0RzLEic